<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<html>
<head>
	<title>Home</title>
	<script src="/goodwilld/resources/jquery-1.10.2.min.js"></script>
</head>
<body>
<h1>
	Hello world!  
</h1>

<P>  The time on the server is ${serverTime}. </P>
<form action="/goodwilld/" method="post">
	<input type="text" id="t" name="t" value=""/>
	<button>submit</button>
</form>
<a href="javascript:ajaxSend();">ajax send</a>
<c:forEach items="${list }" var="item">
	${item }<br />
</c:forEach>
<script type="text/javascript">
function ajaxSend() {
	var param = { "t" : "테스트"};
	$.post("/goodwilld/", param, function() {
		location.reload();
	});
}
</script>
</body>
</html>
